package cn.lvji.springboot.learn3.controller;


import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@org.springframework.stereotype.Controller("/testSimple")
public class TestSimpleController implements Controller {
    @Override
    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
        String aa = request.getParameter("aa");
        response.getWriter().println("aa paramter is " + aa);
        response.getWriter().flush();
        return null;
    }
}
